package com.lagou.page.fegin;

import com.lagou.common.pojo.Orders;
import com.lagou.common.pojo.OrdersVo;

import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "lagou-service-orders",fallback = OrdersFeignFallBack.class)
public interface OrdersFeign {
    @GetMapping("/order/query/{id}")
    public Orders queryById(@PathVariable Integer id);

    @GetMapping("order/queryList")
    public OrdersVo queryList(@RequestParam(value = "current")Integer current, @RequestParam(value = "size")Integer size);
}
